<div class="groups view">
<h2><?php  echo __('Group');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($group['Group']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($group['Group']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Deleted'); ?></dt>
		<dd>
			<?php echo h($group['Group']['deleted']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="related">
	<h3><?php echo __('Related Powers');?></h3>
	<?php if (!empty($group['Power'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Type'); ?></th>
		<th><?php echo __('Group Id'); ?></th>
		<th><?php echo __('Expiry'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Player Text'); ?></th>
		<th><?php echo __('Cs Text'); ?></th>
		<th><?php echo __('Deleted'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($group['Power'] as $power): ?>
		<tr>
			<td><?php echo $power['id'];?></td>
			<td><?php echo $power['type'];?></td>
			<td><?php echo $power['group_id'];?></td>
			<td><?php echo $power['expiry'];?></td>
			<td><?php echo $power['name'];?></td>
			<td><?php echo $power['player_text'];?></td>
			<td><?php echo $power['cs_text'];?></td>
			<td><?php echo $power['deleted'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'powers', 'action' => 'view', $power['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'powers', 'action' => 'edit', $power['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'powers', 'action' => 'delete', $power['id']), null, __('Are you sure you want to delete # %s?', $power['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Power'), array('controller' => 'powers', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
